package com.aigao.golf.common.config

import org.springframework.boot.autoconfigure.web.ServerProperties
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration

@Configuration
class ServerConfig{
    
    @Bean(name = ["serverProperties"])
    fun serverProperties(): ServerProperties{
        var sp = ServerProperties()
        sp.port = 8086
        sp.session.timeout=10
        sp.tomcat.uriEncoding=Charsets.UTF_8
        return sp
    }
    
}
